package com.curso.lab1.dao.intf;

import java.util.List;

import com.curso.lab1.model.Role;
import com.curso.lab1.model.User;

public interface RoleDAO extends GenericDAO<Role, Long> {

	public List<Role> getAllActive();

	public List<Role> getAllActive(User user);

    public Role getRoleByName(String rolename);

    public void deactivateRole(Role role);
    
    public Role saveOrUpdate(Role role);
    
    public void delete(Role role);
}
